#include <stdio.h>
#include <stdlib.h>
#include "Terrain.h"
#include "Hero.h"
#include "Monster.h"
#include "Game.h"
#include "Spell.h"
#include "TableauDynamique.h"
#include <time.h>
#ifdef BOUCLE
#include "Ncurs.h"
#endif
#ifdef SDL
#include "SDLGame.h"
#endif


void testRegression(){
	printf("\n\n************************* TEST REGRESSION START **************************\n\n");
	herTestRegression();
	printf("\n");
	monsterTestRegression();
	printf("\n");
	spellTestRegression();	
	printf("\n");	
	dynTabTestRegression();
	printf("\n");
	teleportTestRegression();
	printf("\n");
	terrTestRegression();
	printf("\n");
	jeuTestRegression();
	printf("\n************************* TEST REGRESSION END ****************************\n\n");
}


int main(){

	#ifdef SDL
	SDLGame game;
	SDLGameInit(&game);
	SDLGameBoucle(&game);
	SDLGameFree(&game);
	#endif

	#ifdef BOUCLE
	Jeu jeu;
	jeuInit(&jeu,'c');
	ncursBoucle(&jeu);
	jeuFree(&jeu);
	#endif

	#ifdef TEST
	testRegression();
	#endif

	return 0;
}

